home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_305 / prfont / myscreen.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  5KB  |  162 lines

  1. /*
  2.  * screen definitions for my custom screen 
  3.  *
  4.  */
  5.  
  6. #define XSIZE 640
  7. #define YSIZE 400
  8.  
  9. static struct TextAttr TOPAZ80 = {
  10.     (STRPTR)"topaz.font",
  11.     TOPAZ_EIGHTY,0,0
  12. };
  13. static struct NewScreen NewScreenStructure = {
  14.     0,0,    /* screen XY origin relative to View */
  15.     XSIZE,YSIZE+2,    /* screen width and height */
  16.     1,    /* screen depth (number of bitplanes) */
  17.     0,1,    /* detail and block pens */
  18.     LACE+HIRES,    /* display modes for this screen */
  19.     CUSTOMSCREEN,    /* screen type */
  20.     &TOPAZ80,    /* pointer to default screen font */
  21.     (UBYTE *)"PrFont",    /* screen title */
  22.     NULL,    /* first in list of custom screen gadgets */
  23.     NULL    /* pointer to custom BitMap structure */
  24. };
  25.  
  26. #define NEWSCREENSTRUCTURE NewScreenStructure
  27.  
  28. static USHORT Palette[] = {
  29.     0x0000, /* color #0 */
  30.     0x0FFF, /* color #1 */
  31. #define PaletteColorCount 2
  32. };
  33.  
  34. #define PALETTE Palette
  35.  
  36. /*
  37.  * definition of the main window
  38.  */
  39.  
  40. static struct NewWindow    New_Window = {
  41.     0, 2,            /* Take all except the */
  42.     XSIZE, YSIZE,    /* top two lines       */
  43.     -1, -1,            /* Default pens */
  44.     CLOSEWINDOW  |MOUSEBUTTONS,    /* Inputs acceppeted */
  45.     WINDOWCLOSE        /* Window Attributes */
  46.     | WINDOWDEPTH | SMART_REFRESH | BORDERLESS ,
  47.     NULL,            /* no gadgets */
  48.     (struct Image *) NULL,
  49.     (UBYTE *) NULL,             /* no title */
  50.     (struct Screen *) NULL,        /* filled at startup */
  51.     (struct BitMap *) NULL,
  52.     0, 0, 0, 0,        /* no change sizes, doesn't matter */
  53.     CUSTOMSCREEN
  54.     } ;
  55.  
  56.  
  57.  
  58. /*
  59.  * Text for requesters 
  60.  */
  61.  
  62. char msgfilename[80];
  63.  
  64.  
  65. struct IntuiText libfailmsg2 = {
  66.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  67.     14,20,    /* XY origin relative to container TopLeft */
  68.     NULL,    /* font pointer or NULL for default */
  69.     (UBYTE *) msgfilename,    /* pointer to text */
  70.     NULL    /* next IntuiText structure */
  71. };
  72.  
  73. struct IntuiText libfailmsg = {
  74.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  75.     14,10,    /* XY origin relative to container TopLeft */
  76.     NULL,    /* font pointer or NULL for default */
  77.     (UBYTE *)"Library Open Failed:",    /* pointer to text */
  78.     &libfailmsg2    /* next IntuiText structure */
  79. };
  80.  
  81.  
  82. struct IntuiText openfomsg2 = {
  83.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  84.     14,26,    /* XY origin relative to container TopLeft */
  85.     NULL,    /* font pointer or NULL for default */
  86.     (UBYTE *) msgfilename,
  87.     NULL    /* next IntuiText structure */
  88. };
  89.  
  90. struct IntuiText openfomsg = {
  91.     0,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  92.     14,16,    /* XY origin relative to container TopLeft */
  93.     NULL,    /* font pointer or NULL for default */
  94.     (UBYTE *)"Can't open font:",    /* pointer to text */
  95.     &openfomsg2    /* next IntuiText structure */
  96. };
  97.  
  98. struct IntuiText cantxt = {
  99.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  100.     5,3,    /* XY origin relative to container TopLeft */
  101.     NULL,    /* font pointer or NULL for default */
  102.     (UBYTE *)"CANCEL",    /* pointer to text */
  103.     NULL    /* next IntuiText structure */
  104. };
  105.  
  106. struct IntuiText retrytxt = {
  107.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  108.     5,3,    /* XY origin relative to container TopLeft */
  109.     NULL,    /* font pointer or NULL for default */
  110.     (UBYTE *)"RETRY",    /* pointer to text */
  111.     NULL    /* next IntuiText structure */
  112. };
  113.  
  114.  
  115. struct IntuiText oktxt = {
  116.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  117.     5,3,    /* XY origin relative to container TopLeft */
  118.     NULL,    /* font pointer or NULL for default */
  119.     (UBYTE *)"OK",    /* pointer to text */
  120.     NULL    /* next IntuiText structure */
  121. };
  122.  
  123. struct IntuiText prfailtxt = {
  124.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  125.     14,16,    /* XY origin relative to container TopLeft */
  126.     NULL,    /* font pointer or NULL for default */
  127.     (UBYTE *)"Printer failed to open",    /* pointer to text */
  128.     NULL    /* next IntuiText structure */
  129. };
  130.  
  131. struct IntuiText memmsg = {
  132.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  133.     14,16,    /* XY origin relative to container TopLeft */
  134.     NULL,    /* font pointer or NULL for default */
  135.     (UBYTE *)"Not Enough Memory",    /* pointer to text */
  136.     NULL    /* next IntuiText structure */
  137. };
  138.  
  139. struct IntuiText availmsg = {
  140.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  141.     14,16,    /* XY origin relative to container TopLeft */
  142.     NULL,    /* font pointer or NULL for default */
  143.     (UBYTE *)"No Fonts Available",    /* pointer to text */
  144.     NULL    /* next IntuiText structure */
  145. };
  146.  
  147. struct IntuiText screenfail = {
  148.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  149.     14,16,    /* XY origin relative to container TopLeft */
  150.     NULL,    /* font pointer or NULL for default */
  151.     (UBYTE *)"PrFont:Can't Open Screen",    /* pointer to text */
  152.     NULL    /* next IntuiText structure */
  153. };
  154.  
  155. struct IntuiText windfail = {
  156.     2,1,JAM2,    /* front and back text pens, drawmode and fill byte */
  157.     14,16,    /* XY origin relative to container TopLeft */
  158.     NULL,    /* font pointer or NULL for default */
  159.     (UBYTE *)"PrFont:Can't Open Window",    /* pointer to text */
  160.     NULL    /* next IntuiText structure */
  161. };
  162.